#!/bin/bash
function sum()
{
	s=0
	for ((i=0;i<=$n;i++))
	do
		s=$[$s+$i]
	done
	echo $s

}
while [ 1 -eq 1 ]
do
	read -p "please input number" n
	sum $n
done
